import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: ()=>import('@/components/index')
    },
    {
      path: '/Jingdian',
      name: 'Jingdian',
      component: ()=>import('@/components/Jingdian')
    },
    {
      path: '/jingdianxiangqi',
      name: 'jingdianxiangqi',
      component: ()=>import('@/components/jingdianxiangqi')
    },
    {
      path: '/viewdingdan',
      name: 'viewdingdan',
      component: ()=>import('@/components/viewdingdan')
    },
    {
      path: '/login',
      name: 'login',
      component: ()=>import('@/components/login')
    },
    {
      path: '/register',
      name: 'register',
      component: ()=>import('@/components/register')
    },
    {
      path: '/success',
      name: 'success',
      component: ()=>import('@/components/success')
    },
    {
      path: '/airindex',
      name: 'airindex',
      component: ()=>import('@/components/airindex')
    },
    {
      path: '/airsShow',
      name: 'airsShow',
      component: ()=>import('@/components/airsShow')
    },
    {
      path: '/airsorder',
      name: 'airsorder',
      component: ()=>import('@/components/airsorder')
    },
    {
      path: '/traindetails',
      name: 'traindetails',
      component: ()=>import('@/components/traindetails')
    },
    {
      path: '/trainindex',
      name: 'trainindex',
      component: ()=>import('@/components/trainindex')
    },
    {
      path: '/trainorder',
      name: 'trainorder',
      component: ()=>import('@/components/trainorder')
    },
    {
      path: '/cartIndex',
      name: 'cartIndex',
      component: ()=>import('@/components/cartIndex')
    },
    {
      path: '/cartshow',
      name: 'cartshow',
      component: ()=>import('@/components/cartshow')
    },
    {
      path: '/cartOrder',
      name: 'cartOrder',
      component: ()=>import('@/components/cartOrder')
    },
  ]
})
